package com.jcxh.sg_exam.pojo.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 
 * @TableName panduan
 */
@Data
public class PanduanDto implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "判断题id",required = true)
    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 题目
     */
    @ApiModelProperty(value = "题目",required = true)
    @NotBlank(message = "题目不能为空")
    private String title;


    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空")
    @ApiModelProperty(value = "类型",required = true)
    private String type;
    /**
     * 答案
     */
    @NotBlank(message = "答案不能为空")
    @ApiModelProperty(value = "答案",required = true)
    private String answer;



    /**
     * 答案解析
     */
    @NotBlank(message = "答案解析不能为空")
    @ApiModelProperty(value = "答案解析",required = true)
    private String analysis;
}